/*
 * @Descripttion: 在根级的getters上 开发子模块的属性给别人看 给别人用
 * @version:
 * @Author: sch
 * @Date: 2021-06-23 20:48:23
 * @LastEditors: YJY
 * @LastEditTime: 2021-07-12 15:49:52
 */
const getters = {
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  token: state => state.user.token,
  username: state => state.user.userinfo.username,
  userId: state => state.user.userinfo.userId,
  staffPhoto: state => state.user.userinfo.staffPhoto,
  companyId: state => state.user.userinfo.companyId, // 建立对于user模块的companyId的快捷访问
  routes: state => state.permission.routes // 导出当前的路由
}
export default getters
